package com.bluefish.bltuan.module.config;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

/**
 * store basic website settings.
 * @author junxue.rao
 *
 */
@Entity
public class Setting implements Serializable {

    /**
     * 
     */
    private static final long serialVersionUID = -1510551157107890704L;

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Integer           id;

    @Enumerated
    private SettingEnum       key;

    private String            value;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public SettingEnum getKey() {
        return key;
    }

    public void setKey(SettingEnum key) {
        this.key = key;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
}
